package com.guet.Dao;

import com.guet.pojo.Department;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.Collection;

/**
 * @author MicahYin
 * @date 2020/8/7 16:25
 */
/** 这是一个注解，标注这是一个mapper类
 *  加入
 * */
@Mapper
@Repository
public interface DepartmentMapper {
    public Collection<Department> getDepartments();
    public Department getDepartmentById(@Param("id") Integer id);
}
